﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace MyBasicLib.Collections.Generic
{
    public class SlidingExpirationCache<TKey, TValue> : ExpirationCache<TKey, TValue>
    {
        public SlidingExpirationCache()
            : this(TimeSpan.FromMinutes(30))
        {
        }
        public SlidingExpirationCache(TimeSpan timeSpanDelay)
            : this(null, timeSpanDelay)
        {
        }

        public SlidingExpirationCache(IEqualityComparer<TKey> comparer, TimeSpan timeSpanDelay)
            : base(comparer, timeSpanDelay)
        { 
        } 
        protected override void SetLastLastAccessTime(CacheItem<TKey, TValue> item)
        {
            base.SetLastLastAccessTime(item);
        }
    }
}
